<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <input type="text" name="name" id="value" v-model='keywords'>
        <button @click='search'>搜索</button>
        <button @click='changeData'>修改数据</button>
    </div>
</body>
<script>
    const vm = new Vue({
        el: '#app',
        data: {
            keywords: ""
        },
        methods: {
            search() {
                console.log(this.keywords);
            },
            changeData() {
                this.keywords = "**" + this.keywords + "**"
            }
        },
    })
</script>

</html>